package com.geovis.emergency.spd.biz.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.geovis.emergency.spd.entity.system.entity.SystemDept;
import com.geovis.emergency.spd.entity.system.entity.SystemUser;
import com.geovis.emergency.spd.entity.system.pojo.dto.SystemDeptQueryDTO;
import com.geovis.emergency.spd.entity.system.pojo.vo.SystemDeptTreeVO;
import com.geovis.emergency.spd.entity.system.pojo.vo.SystemUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 机构表 Mapper 接口
 * </p>
 *
 * @author hhj
 * @since 2021-01-18
 */
public interface SystemDeptMapper extends BaseMapper<SystemDept> {

    List<SystemDeptTreeVO> tree(@Param("deptRoot") List<String> deptRoot);

    List<SystemUserVo> getUsers(@Param("deptIds") List<String> deptIds,@Param("excludeUserIds") List<String> excludeUserIds,@Param("keyword") String keyword);
}
